/** 
 
Copyright 2013 Intel Corporation, All Rights Reserved.

Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at

   http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License. 
*/ 

package com.intel.cosbench.bench;

import java.util.Date;


/**
 * This class represents the aggregated (from different drivers) performance data at one sample interval.
 * 
 * @author ywang19, qzheng7
 *
 */
public class Snapshot {

    private Report report;
    private Date timestamp; /* the time of creation */

    private int version; /* snapshot version number */
    private int minVersion; /* maximum snapshot version */
    private int maxVersion; /* minimum snapshot version */

    public Snapshot() {
        this(new Report());
    }

    public Snapshot(Report report) {
        this(report, new Date());
    }

    public Snapshot(Report report, Date timestamp) {
        this.report = report;
        this.timestamp = timestamp;
    }

    public Report getReport() {
        return report;
    }
    
    public Date getTimestamp() {
        return timestamp;
    }

    public int getVersion() {
        return version;
    }

    public void setVersion(int version) {
        this.version = version;
    }

    public int getMinVersion() {
        return minVersion;
    }

    public void setMinVersion(int minVersion) {
        this.minVersion = minVersion;
    }

    public int getMaxVersion() {
        return maxVersion;
    }

    public void setMaxVersion(int maxVersion) {
        this.maxVersion = maxVersion;
    }

}
